import request from "@/utils/request"; //导入封装请求的js文件
//获取商家信息
export function pmsStore(params) {
    return request({
        url: `/pmsStore/selectAllByMemberId`,
        method: "GET",
        params: params,
    });
}
//编辑店铺信息
export function updateStoreInfo(params) {
    return request({
        url: `/pmsStore/updateStoreInfo`,
        method: "PUT",
        data: params,
    });
}
//实名认证
export function realNameAuthentication(params) {
    return request({
        url: `/umsMember/realNameAuthentication`,
        method: "post",
        data: params,
    });
}
//获取店铺装修信息
export function selectStoreDecorateByStoreId(params) {
    return request({
        url: `/pmsStoreDecorate/selectStoreDecorateByStoreId`,
        method: "get",
        params: params,
    });
}
//修改店铺装修信息
export function updateStoreDecorate(params) {
    return request({
        url: `/pmsStoreDecorate/updateStoreDecorate`,
        method: "post",
        data: params,
    });
}
//添加推荐商品
export function saveRecommendProduct(params) {
    return request({
        url: `/pmsStoreDecorate/saveRecommendProduct`,
        method: "post",
        params: params,
    });
}
//修改推荐商品排序
export function updateRecommendProductOrder(params) {
    return request({
        url: `/pmsStoreDecorate/updateRecommendProductOrder`,
        method: "PUT",
        params: params,
    });
}
//移出推荐商品
export function deleteRecommendProduct(params) {
    return request({
        url: `/pmsStoreDecorate/deleteRecommendProduct`,
        method: "DELETE",
        params: params,
    });
}
//获取商家个人中心
export function selectStorePersonalCenter(params) {
    return request({
        url: `/pmsStore/selectStorePersonalCenter`,
        method: "get",
        params: params,
    });
}